{extends file='layout/main.html'}
{block name="main"}
<div class="main_title">
	<h2>添加图片</h2>
</div>
{if $smarty.get.id}
<form action="?url=marquee/update&id={$smarty.get.id}" method="post" accept-charset="utf-8">
{else}
<form action="?url=marquee/create" method="post" accept-charset="utf-8">
{/if}
<div class="con_blk">
  <h3 class="light_gray">名称</h3>
	<input name="info[name]" type="text" class="text" value="{$info.name}">
</div>


<div class="con_blk">
  <h3 class="light_gray">地址</h3>

  {if $info.path}
  <img src="/attachments{$info.path}" />
  {/if}

  {include file="lib/upload.html" upload_name="info[path]" value=$info.path}
</div>

<div class="con_blk">
  <h3 class="light_gray">排序</h3>
	<input name="info[view_order]" type="text" class="text" value="{$info.view_order}">
</div>


</form>

<div class="btn_blk b_t">
	<div class="fr">
		<a href="#" class="btn2 fr ml20 cancel">取消</a>
		<a href="#" class="btn1 fr save">确定</a>
	</div>
</div>

{/block}